package com.xuecheng.api.content;

import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.api.content.model.vo.TeachplanVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api(value = "课程大纲api",tags = "课程大纲api")
public interface TeachPlanApi {
    @ApiOperation("根据课程id查询课程大纲(树形结构)")
    @ApiImplicitParam(name ="courseBaseId" ,value ="课程id" ,required = true,paramType ="path" ,dataType = "Long")
    TeachplanDTO queryTreeNodeByCourseId(Long courseBaseId);

    @ApiOperation("新增或修改课程大纲")
    @ApiImplicitParam(name ="vo" ,value ="课程大纲的封装数据" ,required = true,paramType = "body",dataType ="TeachplanVO" )
    TeachplanDTO createOrModifyTeachPlan(TeachplanVO vo);


    @ApiOperation("删除课程大纲")
    @ApiImplicitParam(name ="teachPlanId" ,value ="课程大纲的id" ,required = true,paramType = "path",dataType ="Long" )
    void removeTeachPlan(Long teachPlanId);
}
